package com.baidu.springboot_10_simpledemo.service.impl;

import com.baidu.springboot_10_simpledemo.domain.Emp;
import com.baidu.springboot_10_simpledemo.domain.User;
import com.baidu.springboot_10_simpledemo.mapper.UserMapper;
import com.baidu.springboot_10_simpledemo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User findUser(User user) {
        User u = this.userMapper.findUser(user.getUsername(),user.getPassword());
        return u;
    }


}
